package com.ckf.mall.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ckf.mall.entity.UserAddress;
import com.ckf.mall.service.UserService;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * 服务提供者，需要用dubbo中的@Service来暴露服务
 */


public class UserServiceImpl implements UserService {


    @Override
    public List<UserAddress> getUserAddressList(String userId) {

        System.out.println("UserServiceImpl..3.....");
        UserAddress address1 = new UserAddress(1, "北京市昌平区宏福科技园综合楼3层", "1", "李老师", "010-56253825", "Y");
        UserAddress address2 = new UserAddress(2, "深圳市宝安区西部硅谷大厦B座3层（深圳分校）", "1", "王老师", "010-56253825", "N");
        UserAddress address3 = new UserAddress(3, "深圳市宝安区西部硅谷大厦B座8层（湛江分校）", "1", "陈老师", "010-56253825", "N");

        return Arrays.asList(address1,address2,address3);
    }
}
